const { defineConfig } = require("@vue/cli-service")
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: "./", // 这里设置成./，否则打包后vue的静态资源引用会报错找不到路径导致白屏
  pluginOptions: {
    electronBuilder: {
      customFileProtocol: "./",
      builderOptions: {
        productName: "简易五子棋",
        win: {
          icon: "./public/bangl.ico",
        },
        extraResources: {
          from: "./public/resources",
          to: "./",
        },
      },
    },
  },
})
